package com.kstudio.videocapture.editimage;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.kstudio.videocapture.R;
import com.kstudio.videocapture.util.KLog;


public class KImageEditActivity extends Activity {
    private final KLog log = new KLog("KImageEdit");

    private KImageEditViewGL        mImageViewGL;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        log.i("KImageEditActivity : ***************** onCreate *****************");
        super.onCreate(savedInstanceState);

        setContentView(R.layout.image_edit_activity);

        Intent intent = getIntent();
        String path = null;
        if(intent != null) {
            path = intent.getStringExtra("path");
        } else {
            log.e("Error");
        }

        mImageViewGL = (KImageEditViewGL) findViewById(R.id.image_edit_view_gl);
        mImageViewGL.setInit(path);
    }

    @Override
    protected void onRestart() {
        log.i("KImageEditActivity : ***************** onRestart *****************");
        super.onRestart();
    }

    @Override
    protected void onStart() {
        log.i("KImageEditActivity : ***************** onStart *****************");
        super.onStart();
    }

    @Override
    protected void onResume() {
        log.i("KImageEditActivity : ***************** onResume *****************");
        super.onResume();
    }

    @Override
    protected void onPause() {
        log.i("KImageEditActivity : ***************** onPause *****************");
        super.onPause();
    }

    @Override
    protected void onStop() {
        log.i("KImageEditActivity : ***************** onStop *****************");
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        log.i("KImageEditActivity : ***************** onDestroy *****************");
        super.onDestroy();
    }
}
